const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
  return sequelize.define('yjyview1', {
    Sample_ID: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    SampleNo: {
      type: DataTypes.STRING(500),
      allowNull: true
    },
    Longitude: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Latitude: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Elevation: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    'Geo-Tectonic unit': {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    Locality: {
      type: DataTypes.STRING(500),
      allowNull: true
    },
    'Pluton name': {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    Lithology: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    'Analyzed Age (Ma)': {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    'Analyzed Age Error': {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    'Measure Method': {
      type: DataTypes.STRING(800),
      allowNull: true
    },
    Analytical_content: {
      type: DataTypes.STRING(500),
      allowNull: true
    },
    'Measured minerals': {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    Geological_period: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    Min_age_limit: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Max_age_limit: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    First_Author: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    Year: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    Journal: {
      type: DataTypes.STRING(2000),
      allowNull: true
    },
    Volume: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    Pages: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    DOI_or_URL: {
      type: DataTypes.STRING(800),
      allowNull: true
    },
    SiO2: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    TiO2: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Al2O3: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Fe2O3: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    FeO: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Fe2O3T: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    FeOT: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    MnO: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    MgO: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    CaO: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Na2O: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    K2O: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    P2O5: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    'H2O-': {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    CO2: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    CO3: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    F: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    LOI: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Total: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    La: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Ce: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Pr: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Nd: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Sm: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Eu: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Gd: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Tb: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Dy: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Ho: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Er: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Tm: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Yb: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Lu: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Y: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Sc: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    V: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Cr: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Co: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Ni: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Mn: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Cu: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Zn: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Ga: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Ge: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Cs: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Rb: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Ba: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Th: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    U: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Nb: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Ta: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Ti: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    P: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Pb: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Sr: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Zr: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Hf: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Li: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Be: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    W: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Pt: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Pd: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Os: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Ir: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Ru: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Rh: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Sn: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Mo: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Rb_Rb: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Rb_Sr: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    '87Rb/86Sr(m)': {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    '87Sr/86Sr(m)': {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Sm_Sm: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Sm_Nd: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    '147Sm/144Nd(m)': {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    '143Nd/144Nd(m)': {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Pb_208Pb_204Pb: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Pb_207Pb_204Pb: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    Pb_206Pb_204Pb: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    O_18OVSMOW: {
      type: DataTypes.DOUBLE,
      allowNull: true
    },
    O_18OVSMOW_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true
    }
  }, {
    sequelize,
    tableName: 'yjyview1',
    schema: 'public',
    timestamps: false
  });
};
